﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DateiaftenLibTest;

namespace DateiaftenLibUnittest
{
    [TestClass]
    public class CityBLLTest
    {
        CityBLL cityBLL = CityBLL.Instance;

        [TestMethod]
        public void FindCityByNameAndZipcodeTest()
        {
            City city = new City();
            city.Cityname = "Aalborg";
            city.Zipcode = 9000;

            City city2 = cityBLL.FindCityByNameAndZipcode("Aalborg", "9000");
            Assert.AreEqual(city2.Zipcode, city.Zipcode);
            Assert.AreEqual(city2.Cityname, city.Cityname);

        }
    }
}
